home *** CD-ROM | disk | FTP | other *** search
/ The Sunday Times: The Month 2003 December / The Sunday Times - The Month 2003-12.iso / mac / The Month DEC 03 / engine / modules / shopping.swf / scripts / frame_5 / DoAction.as
Text File  |  2003-11-10  |  509b  |  27 lines

  1. function showContent(type)
  2. {
  3.    trace("shopping.showContent( " + type + " )");
  4.    currPage = type;
  5.    loadPageData(type.toLowerCase());
  6.    mMenu.setPage(type.toLowerCase());
  7.    mText.gotoAndStop(type.toLowerCase());
  8. }
  9. function init()
  10. {
  11.    if(this == _root)
  12.    {
  13.       showContent("music");
  14.    }
  15.    else
  16.    {
  17.       trace("shopping loaded, looking for nodeData...");
  18.       showContent(nodeData.attributes.type);
  19.    }
  20. }
  21. if(this == _root)
  22. {
  23.    showContent("music");
  24. }
  25. onReady();
  26. stop();
  27.